package com.jt808.decode.constant;

import lombok.Getter;

/**
 * <p>Description: JT808 registration result enumeration</p>
 *
 * @date 2017/9/15
 */
@Getter
public enum Jt808RegisterResultEnum {
    /**
     * success
     */
    SUCCESS(0, "success"),

    /**
     * The vehicle has been registered
     */
    VEHICLE_REGISTERED(1, "The vehicle has been registered"),

    /**
     * The vehicle is not available in the database
     */
    VEHICLE_NOT_IN_DB(2, "The vehicle is not available in the database"),

    /**
     * The device has been registered
     */
    TERMINAL_REGISTERED(3, "The device has been registered"),

    /**
     * The device is not available in the database
     */
    TERMINAL_NOT_IN_DB(4, "The device is not available in the database");

    private final int value;
    private final String desc;

    Jt808RegisterResultEnum(int value, String desc) {
        this.value = value;
        this.desc = desc;
    }

}
